package com.migo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.migo.dao.MgOpenAdvertisementDao;
import com.migo.entity.MgOpenAdvertisementEntity;
import com.migo.service.MgOpenAdvertisementService;



@Service("mgOpenAdvertisementService")
public class MgOpenAdvertisementServiceImpl implements MgOpenAdvertisementService {
	@Autowired
	private MgOpenAdvertisementDao mgOpenAdvertisementDao;


	@Override
	public List<MgOpenAdvertisementEntity> queryOpeningImage(Map<String, Object> params) {
		return mgOpenAdvertisementDao.queryOpeningImage(params);
	}

	@Override
	public MgOpenAdvertisementEntity queryObject(Integer id){
		return mgOpenAdvertisementDao.queryObject(id);
	}
	
	@Override
	public List<MgOpenAdvertisementEntity> queryList(Map<String, Object> map){
		return mgOpenAdvertisementDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return mgOpenAdvertisementDao.queryTotal(map);
	}
	
	@Override
	public void save(MgOpenAdvertisementEntity mgOpenAdvertisement){
		mgOpenAdvertisementDao.save(mgOpenAdvertisement);
	}
	
	@Override
	public void update(MgOpenAdvertisementEntity mgOpenAdvertisement){
		mgOpenAdvertisementDao.update(mgOpenAdvertisement);
	}
	
	@Override
	public void delete(Integer id){
		mgOpenAdvertisementDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		mgOpenAdvertisementDao.deleteBatch(ids);
	}
	
}
